package com.laf;

import org.dromara.easyes.starter.register.EsMapperScan;
import org.dromara.x.file.storage.spring.EnableFileStorage;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动程序
 *
 * @author ruoyi
 */
@EnableFileStorage // 开启文件存储功能
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EsMapperScan("com.laf.**.mapper.es")
@EnableTransactionManagement // 开启事务支持
public class LafApplication {
    public static void main(String[] args) {
        System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(LafApplication.class, args);
    }
}
